<div class="grid-24">
  <?php if (Yii::app()->user->hasFlash('success')): ?>
    <div class="notify notify-success">
      <a href="javascript:;" class="close">×</a>
      <?php echo Yii::app()->user->getFlash('success'); ?>
    </div>
  <?php endif; ?>

  <div class="widget widget-table">
    <div class="widget-header">
      <span class="icon-list"></span>
      <h3 class="icon chart">Tracking</h3>
    </div>

    <div class="widget-content">
      <div class="dataTables_wrapper">
        <div class="fg-toolbar ui-toolbar ui-widget-header ui-corner-tl ui-corner-tr ui-helper-clearfix">
          <div class="dataTables_filter">
          </div>
        </div>
        <div style="width: 990px;overflow-x: scroll;">

        <table class="table table-bordered table-striped" >
          <thead>
            <tr>
              <th class="" width="3%">AccId</th>
              <th class="" width="5%">nickname</th>
              <th class="" width="5%">sitename</th>
              <th class="" >Date</th>
              <th class="" width="10%">Login Status</th>
              <th class="" width="10%">Ad Status</th>
              <th class="" width="10%">Grid Status</th>
              <th class="" width="10%">Click Num</th>
              <th class="" width="10%">$ Before</th>
              <th class="" width="10%">$ After</th>
            </tr>
          </thead>
          <tbody>
            <?php foreach ($trackingList as $tracking): ?>
              <tr class="gradeA">
                <td class="center"><?php echo CHtml::encode($tracking['account_id']); ?></td>
                <td class="center"><?php echo CHtml::encode($tracking['nickname']); ?></td>
                <td class="center"><?php echo CHtml::encode($tracking['sitename']); ?></td>
                <td class="center"><?php echo CHtml::encode($tracking['tracking_date']); ?></td>
                <td class="center"><?php echo CHtml::encode($tracking['login_status']); ?></td>
                <td class="center"><?php echo CHtml::encode($tracking['ad_status']); ?></td>
                <td class="center"><?php echo CHtml::encode($tracking['grid_status']); ?></td>
                <td class="center"><?php echo CHtml::encode($tracking['click_num']); ?></td>
                <td class="center"><?php echo CHtml::encode($tracking['money_before']); ?></td>
                <td class="center"><?php echo CHtml::encode($tracking['money_after']); ?></td>
              </tr>
            <?php endforeach; ?>
          </tbody>
        </table>

        </div>
        <?php $this->renderPartial('../units/_custom_pager', array('total' => $total, 'totalPage' => $totalPage, 'currentPage' => $currentPage,)); ?>
      </div>
    </div>
    <!-- .widget-content -->

  </div>
  <!-- .widget -->

</div>

<?php
$cs = Yii::app()->getClientScript();
$cs->registerScriptFile(Yii::app()->baseUrl . '/js/traking.js');
?>